@import "cropper.global";

.ux-crop-upload {
  .cropper-preview-wrapper {
    position: relative;
    &.size-md {
      margin: 10px 0;
    }
  }
  .cropper-preview {
    &-text {
      color: #f00;
    }
  }
  &-wrapper {
    display: flex;
    margin-top: 10px;
  }
  &-cropper {
    flex: 1;
    border: 1px solid #dfdfdf;
    margin-right: 10px;
    max-height: 600px;
    overflow: hidden;
  }
  &-preview {
    .cropper-preview {
      overflow: hidden;
      border: 1px dashed #c6c6c6;
      &.size-lg {
        width: 180px;
        height: 180px;
      }
      &.size-md {
        width: 150px;
        height: 150px;
      }
      &.size-sm {
        width: 120px;
        height: 120px;
      }
    }
  }

  .cropper-container-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    .cropper-container {
      .cropper {
        width: 100%;
        height: 100%;
      }
    }
    .preview-container {
      flex: 1;
      display: flex;
      align-items: flex-end;
      .cropper-preview {
        width: 180px;
        height: 180px;
        overflow: hidden;
        border: 1px solid #383838;
      }
    }
  }
}

